/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_bed_devicedefinitionsDetachedCriteria extends
	AbstractORMDetachedCriteria {
    public final IntegerExpression id;
    public final StringExpression name;

    public T_bed_devicedefinitionsDetachedCriteria() {
	super(
		org.testis.orm.classes.T_bed_devicedefinitions.class,
		org.testis.orm.classes.T_bed_devicedefinitionsCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	name = new StringExpression("name", this.getDetachedCriteria());
    }

    public T_bed_devicedefinitionsDetachedCriteria(
	    DetachedCriteria aDetachedCriteria) {
	super(
		aDetachedCriteria,
		org.testis.orm.classes.T_bed_devicedefinitionsCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	name = new StringExpression("name", this.getDetachedCriteria());
    }

    public T_bed_deviceabstractionDetachedCriteria createAbstractCriteria() {
	return new T_bed_deviceabstractionDetachedCriteria(
		createCriteria("Abstract"));
    }

    public T_bed_dutDetachedCriteria createT_bed_dutCriteria() {
	return new T_bed_dutDetachedCriteria(createCriteria("ORM_T_bed_dut"));
    }

    public T_bed_firmwareDetachedCriteria createT_bed_firmwareCriteria() {
	return new T_bed_firmwareDetachedCriteria(
		createCriteria("ORM_T_bed_firmware"));
    }

    public T_test_deviceinclusionDetachedCriteria createT_test_deviceinclusionCriteria() {
	return new T_test_deviceinclusionDetachedCriteria(
		createCriteria("ORM_T_test_deviceinclusion"));
    }

    public T_bed_devicedefinitions uniqueT_bed_devicedefinitions(
	    PersistentSession session) {
	return (T_bed_devicedefinitions) super
		.createExecutableCriteria(session).uniqueResult();
    }

    public T_bed_devicedefinitions[] listT_bed_devicedefinitions(
	    PersistentSession session) {
	List list = super.createExecutableCriteria(session).list();
	return (T_bed_devicedefinitions[]) list
		.toArray(new T_bed_devicedefinitions[list.size()]);
    }
}
